﻿using FrameworkCore.Extensions;
using System.Text.Json.Serialization;

namespace AiBLSmartEdu.Module.SmartStockSense.API.DTOs;


public class HistoricalMinuteTradingDto
{
    /// <summary>
    /// 日期
    /// </summary>
    [JsonPropertyName("d")]
    [JsonConverter(typeof(CustomDateTimeConverter))]
    public DateTime? D { get; set; }

    /// <summary>
    /// 开盘价
    /// </summary>
    [JsonPropertyName("o")]
    public decimal? O { get; set; }

    /// <summary>
    /// 最高价
    /// </summary>
    [JsonPropertyName("h")]
    public decimal? H { get; set; }

    /// <summary>
    /// 最低价
    /// </summary>
    [JsonPropertyName("l")]
    public decimal? L { get; set; }

    /// <summary>
    /// 收盘价
    /// </summary>
    [JsonPropertyName("c")]
    public decimal? C { get; set; }

    /// <summary>
    /// 成交量
    /// </summary>
    [JsonPropertyName("v")]
    public int? V { get; set; }

    /// <summary>
    /// 成交额
    /// </summary>
    [JsonPropertyName("e")]
    public decimal? E { get; set; }

    /// <summary>
    /// 价格振幅
    /// </summary>
    [JsonPropertyName("zf")]
    public decimal? Zf { get; set; }

    /// <summary>
    /// 换手率
    /// </summary>
    [JsonPropertyName("hs")]
    public decimal? Hs { get; set; }

    /// <summary>
    /// 涨跌幅
    /// </summary>
    [JsonPropertyName("zd")]
    public decimal? Zd { get; set; }

    /// <summary>
    /// 涨跌额
    /// </summary>
    [JsonPropertyName("zde")]
    public decimal? Zde { get; set; }

    /// <summary>
    /// 更新时间
    /// </summary>
    [JsonPropertyName("ud")]
    [JsonConverter(typeof(CustomDateTimeConverter))]
    public DateTime? Ud { get; set; }
}